package com.qfedu.pojo;

import javax.xml.crypto.Data;
import java.io.Serializable;
import java.util.Date;

public class Employee  implements Serializable {
    private Integer id;
    private String name;
    private Date hireDate;
    //private Integer deptId;
    private Dept dept; //多对一的关系  多个员工在一个部门  员工：部门  n:1
    private Float salary;
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getHireDate() {
        return hireDate;
    }

    public void setHireDate(Date hireDate) {
        this.hireDate = hireDate;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public Dept getDept() {
        return dept;
    }


    public Float getSalary() {
        return salary;
    }

    public void setSalary(Float salary) {
        this.salary = salary;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", hireDate=" + hireDate +
                ", dept=" + dept +
                ", salary=" + salary +
                '}';
    }
}
